
import _ from "lodash"; // 引入 lodash
import * as echarts from "echarts"; // 引入 ECharts
import * as d3 from "d3"; // 引入 D3.js
import dayjs from "dayjs";
import { runApi, runFetch, runPublicFun,broadcast } from "./tools";
import Hls from 'hls.js';
import videojs from 'video.js';
import 'video.js/dist/video-js.css';  // 引入默认样式
import 'ol/ol.css';  // 引入样式
import Map from 'ol/Map';
import View from 'ol/View';
import TileLayer from 'ol/layer/Tile';
import OSM from 'ol/source/OSM';
import * as THREE from "three";

window.getMDInstance = () => {
  return {
    $_: _,
    $echarts: echarts,
    $d3: d3,
    $dayjs: dayjs,
    $Hls: Hls,
    $videojs: videojs,
    $runApi: runApi,
    $runFetch: runFetch,
    $runPublicFun: runPublicFun,
    $ol: {Map, View, TileLayer, OSM},
    $broadcast: broadcast,
    $ThreeJs: THREE,
  };
};